package cn.itsource.rpms.service.impl;

import cn.itsource.rpms.domain.Setted;
import cn.itsource.rpms.mapper.SettedMapper;
import cn.itsource.rpms.query.BaseQuery;
import cn.itsource.rpms.service.ISettedService;
import cn.itsource.rpms.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SettedServiceImpl extends BaseServiceImpl<Setted> implements ISettedService{

    @Autowired
    private SettedMapper mapper;

    @Override
    public PageResult<Setted> queryCar(BaseQuery query) {
        List<Setted> setteds = mapper.queryCar(query);
        Long total=mapper.queryCarTotal(query);
        return new PageResult<Setted>(total,setteds);
    }


}
